package com.ruoyi.mapper;

import com.ruoyi.domain.Orders;
import com.ruoyi.domain.Pay;
import com.ruoyi.domain.Payment;
import com.ruoyi.domain.Point;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface AlipayNewMapper {
    int  Insert(Payment payment);

    int UpdateStatus(String outTradeNo);

    Long selectUserFromPayment(String outTradeNo);

    Point selectUserFromPoint(Long userId);

    int addPoint( Point point);

    int updatePoint(@Param("userId") Long userId, @Param("points") Long points);

    int InsertOders(Orders order);
}
